package com.kgc.store.remote;

import com.kgc.basic.util.ResponseMsg;
import com.kgc.store.pojo.KcStoreGood;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.math.BigDecimal;
import java.util.Map;

public interface StoreGoodSummaryRemote {

    //库存查询表
    @RequestMapping("selectSummaryByStoreGood")
    @ResponseBody
    ResponseMsg selectSummaryByStoreGood(@RequestBody Map<String, Object> map);

    // 获取所有仓库信息
    @RequestMapping("selectAll")
    @ResponseBody
    ResponseMsg selectAll();

    //商品收发明细
    @RequestMapping("selectSummaryByGoodsTransactionDetail")
    @ResponseBody
    ResponseMsg selectSummaryByGoodsTransactionDetail(@RequestBody Map<String, Object> map);

    //批次跟踪表
    @RequestMapping("selectSummaryByBatchTrackingDetail")
    @ResponseBody
    ResponseMsg selectSummaryByBatchTrackingDetail(@RequestBody Map<String, Object> map);

//    //更新库存
//    @RequestMapping("updateStore")
//    @ResponseBody
//    ResponseMsg updateStore(@RequestParam("gid") int gid, @RequestParam("sid") int sid, @RequestParam("stock") int stock);

    //
    @RequestMapping("method")
    @ResponseBody
    ResponseMsg method(@RequestBody Map<String, Object> map);

    //根据sid（仓库id）和gid（商品id）查询
    @RequestMapping("selectKcStoreGoodBySidCid")
    @ResponseBody
    ResponseMsg selectKcStoreGoodBySidCid(@RequestParam("sid") int sid, @RequestParam("gid") int gid);

    //获取所有库存金额
    @RequestMapping("getTotalInventoryCost")
    @ResponseBody
    ResponseMsg getTotalInventoryCost();
}
